define(function(require){
	var $ = require("jquery");
	var justep = require("$UI/system/lib/justep");
	
	var Model = function(){
		this.callParent();
	};
	//跳转到个人设置
	Model.prototype.settingClick = function(event){
		var url = require.toUrl("settings.w");
	    if (justep.Browser.isX5App && justep.Browser.isAndroid) {
	        window.open(url,"_system");
	    } else {
	        window.open(url, '_blank', 'toolbarposition=top,location=no,enableViewportScale=yes');
	    }
	}
	
	//跳转到申请返利
	Model.prototype.rebateClick = function(){
		var url = require.toUrl("rebate.w");
	    if (justep.Browser.isX5App && justep.Browser.isAndroid) {
	        window.open(url,"_system");
	    } else {
	        window.open(url, '_blank', 'toolbarposition=top,location=no,enableViewportScale=yes');
	    }
	}
	
	//跳转到绑定支付宝
	Model.prototype.alipayClick = function(){
		var url = require.toUrl("alipay.w");
	    if (justep.Browser.isX5App && justep.Browser.isAndroid) {
	        window.open(url,"_system");
	    } else {
	        window.open(url, '_blank', 'toolbarposition=top,location=no,enableViewportScale=yes');
	    }
	}
	
	//跳转到提现
	Model.prototype.cashClick = function(){
		var url = require.toUrl("cash.w");
	    if (justep.Browser.isX5App && justep.Browser.isAndroid) {
	        window.open(url,"_system");
	    } else {
	        window.open(url, '_blank', 'toolbarposition=top,location=no,enableViewportScale=yes');
	    }
	}
	return Model;
});